/**
 * Created by xiaotao on 18-5-2.
 */

export default {
  getList: config => {
    return {
      total: 10,
      items: []
    }
  },
  getGameType: () => ([
    { id: 1, name: '越野赛' },
    { id: 2, name: '马拉松' },
    { id: 3, name: '铁人三项' }
  ]),
  getConfig: () => ({
    chip: {
      type: 'radio',
      title: '芯片类型',
      items: [{
        id: 1,
        name: '地标签',
        unit: '个',
        base_price: 1000,
        step: 1,
        step_price: 12
      }, {
        id: 2,
        name: '号码布芯片',
        unit: '个',
        base_price: 1000,
        step: 1,
        step_price: 12
      }, {
        id: 3,
        name: '号码衫',
        unit: '个',
        base_price: 1000,
        step: 1,
        step_price: 12
      }]
    },
    machine: {
      type: 'list',
      title: '计时点配置',
      items: [{
        id: 1,
        name: '计时地毯',
        unit: '米',
        base_price: 4000,
        step: 4,
        step_price: 1000
      }, {
        id: 2,
        name: '手持机',
        unit: '个',
        base_price: 4000,
        step: 1,
        step_price: 1000
      }]
    },
    clock: {
      type: 'list',
      title: '计时钟配置',
      items: [{
        id: 1,
        name: '龙门计时钟',
        unit: '个',
        base_price: 0,
        step: 1,
        step_price: 1000
      }, {
        id: 2,
        name: '计时点计时钟',
        unit: '个',
        base_price: 0,
        step: 1,
        step_price: 1000
      }, {
        id: 3,
        name: '车载计时钟',
        unit: '个',
        base_price: 0,
        step: 1,
        step_price: 1000
      }]
    },
    service: {
      type: 'check',
      title: '附加服务',
      items: [{
        id: 1,
        name: '短信发送',
        unit: '个',
        base_price: 0,
        step: 1,
        step_price: 1
      }, {
        id: 2,
        name: '芯片核查',
        unit: '个',
        base_price: 0,
        step: 1,
        step_price: 1000
      }, {
        id: 3,
        name: '身份证领物',
        unit: '个',
        base_price: 0,
        step: 1,
        step_price: 1000
      }]
    }
  }),
  getApply: () => ({
    id: 120000000001,
    author: { key: 'mockPan' },
    source_name: '原创作者',
    category_item: [{ key: 'global', name: '全球' }],
    comment_disabled: true,
    content: '<p>我是测试数据我是测试数据</p><p><img class="wscnph" src="https://wpimg.wallstcn.com/4c69009c-0fd4-4153-b112-6cb53d1cf943" data-wscntype="image" data-wscnh="300" data-wscnw="400" data-mce-src="https://wpimg.wallstcn.com/4c69009c-0fd4-4153-b112-6cb53d1cf943"></p>"',
    content_short: '我是测试数据',
    display_time: +new Date(),
    image_uri: 'https://wpimg.wallstcn.com/e4558086-631c-425c-9430-56ffb46e70b3',
    platforms: ['a-platform'],
    source_uri: 'https://github.com/PanJiaChen/vue-element-admin',
    status: 'published',
    tags: [],
    title: 'vue-element-admin'
  }),
  createApply: () => ({
    data: 'success'
  }),
  updateApply: () => ({
    data: 'success'
  })
}
